/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '@/utils/request';

// 获取待处理补扣订单列表
export async function getWkdAfterPayList(params: any) {
  return request('/wkd/AfterPay/lists', {
    method: 'POST',
    data: params,
  });
}

// 获取订单授权列表
export async function getWkdAfterPayAuthList(params: any) {
  return request('/wkd/AfterPay/authList', {
    method: 'POST',
    data: params,
  });
}

// 绑单
export async function setWkdAfterPayAuth(params: any) {
  return request('/wkd/AfterPay/auth', {
    method: 'POST',
    data: params,
  });
}

// 重试绑单
export async function setWkdAfterPayAgainAuth(params: any) {
  return request('/wkd/AfterPay/againAuth', {
    method: 'POST',
    data: params,
  });
}

// 发起扣款
export async function setWkdAfterPayment(params: any) {
  return request('/wkd/AfterPay/payment', {
    method: 'POST',
    data: params,
  });
}
